import { baseUrlApi, requestClient, type Result } from '#/api/request';

export function getSetting() {
  return requestClient.get<Result>(baseUrlApi('/portal/admin/setting'));
}

export function postSetting(data: any) {
  return requestClient.post<Result>(baseUrlApi(`/portal/admin/setting`), data);
}

export function createSitemap() {
  return requestClient.get<Result>('/portal/index/createSitemap');
}
export function pushBaidu() {
  return requestClient.get<Result>(
    baseUrlApi('/portal/admin/setting/push/baidu'),
  );
}
